获取支付状态 商户->百度

获取订单详情

接口描述

本接口用于查询当前订单详情,无缓存

权限说明

注意事项

  1. 超时时间:要求接口耗时小于1.5S(超过1.5S触发超时重试),重试策略:1次/2分钟,累计次数200次。
  2. 返回值判断:
    a.返回数据格式:json,包含字段如:{"errno":0,"msg":"success","data":{}}

请求参数

参数名称 类型 是否必选 参数位置 描述
bd_pay_order_id String RequestBody参数 百度支付单号
tp_order_id String RequestBody参数 商户订单号

响应参数

参数名称 父节点 类型 是否必传 描述
errno int 错误码,0:成功
msg string 结果描述,success:成功
data json 预定结果
bdOrderId data string 百度支付订单号
orderTitle data string 订单名称
tpStatus data string 订单状态,码表
tplStatus data string 订单状态
payAmount data string 支付金额,分
discountAmount data string 补贴金额,分

请求示例

{
    "tp_name":"test",
    "salt":681161,
    "timestamp":1648642558,
    "sign":"ca852a6df07aa4653d1d0848bd893247",
    "bd_pay_order_id":"test_1509118392932671488"
}

响应示例

{
    "errno": 0,
    "errstr": "",
    "desc": "操作成功",
    "data": {
        "bdOrderId": "test_1509118392932671488",
        "orderTitle": "xx加油站",
        "tplStatus": "支付超时",
        "tpStatus": "2",
        "payAmount": "18100",
        "discountAmount": "0"
    }
}

tpStatus订单状态码表

取值 释义 描述
1 待支付 未支付
2 支付超时 半小时未支付订单
3 支付成功 支付成功,待使用
4 退款审核中 商户客服审核中
5 退款成功 已退款
6 退款失败 退款失败,继续使用

错误码

errno 描述 处理
0 成功
1000 参数错误 检查加密参数与必传参数是否有误
2100 order no exists 订单不存在
概览订单状态变更回传文件 商户->百度